home *** CD-ROM | disk | FTP | other *** search
- Path: phoenix.rhein.de!yaps!arno
- From: arno@yaps.rhein.de (Arno Eigenwillig)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Writing a .info file
- Message-ID: <uaDUx*B+e@yaps.rhein.de>
- Date: Sat, 06 Jan 1996 17:30:06 +0100
- References: <19084183@cacios.locebbs.chnet.ch>
- Organization: Yet Another Private Site in Meckenheim, Germany
- X-Copyright: This article may not be distributed on a CD-ROM
- or in printed form without prior written consent of the author.
- X-Newsreader: Arn V 1.04
-
- In article <19084183@cacios.locebbs.chnet.ch>, "Stefano Cairoli" writes:
-
- > I know how to read an icon file and how to scan the tooltypes records, but
- > I don't know how to change/add/delete a tooltype and then write the new
- > .info file back.
-
- GetDiskObject(), create a NULL-terminated array of pointers to zero-
- terminated strings (the tool types) and use it as do_ToolTypes and
- PutDiskObject(). It is _important_ that you restore the original value
- of do_ToolTypes before calling FreeDiskObject()! (Perhaps not for your
- particular revision of icon.library, but in general.)
-
- -- __
- __/// Arno Eigenwillig /\ <arno@yaps.rhein.de> \/ PGP key available.
- \XX/ V+49-2225-5870 /\ <Arnooo @ #amigager> \/ MIME 8bit welcome.
-